# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=plutil
pkgver=1.6
pkgrel=4
pkgdesc='Converts .plist files between binary and UTF-8 (editable) text formats.'
groups=('blackarch' 'blackarch-misc')
arch=('any')
url='http://scw.us/iPhone/plutil/'
license=('custom:unknown')
depends=('perl')
makedepends=('dos2unix')
source=("http://scw.us/iPhone/plutil/$pkgname.pl")
sha512sums=('3fde647494ad36c06f30b23c5b250d030855b919')

prepare() {
  sed -i '1i\#!/usr/bin/perl' "$pkgname.pl"

  dos2unix "$pkgname.pl"
}

package() {
  install -Dm 755 "$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
}

